package cn.iflags.Mall.vo;

import cn.iflags.Mall.pojo.Paste;

import java.util.Date;

/**
 * 描述:
 *
 * @author Vincent Vic
 * create 2020-03-15 11:02
 */


public class PasteVo {

    private String titleName;

    private String syntax;

    //这是style不是数据库存放的style是前台需要的style
    private String style;

    private String detail;

    private String code;

    //代码贴不存在更新，将创建时间返回即可
    private Date time;


    public PasteVo() {
    }

    public PasteVo(Paste paste,String code,String style) {
        this.titleName = paste.getTitleName();
        this.syntax = paste.getSyntax();
        this.style = style;
        this.detail = paste.getDetail();
        this.code = code;
        this.time = paste.getCreateTime();
    }

    public PasteVo(String titleName, String syntax, String style, String detail, String code, Date time) {
        this.titleName = titleName;
        this.syntax = syntax;
        this.style = style;
        this.detail = detail;
        this.code = code;
        this.time = time;
    }

    public String getTitleName() {
        return titleName;
    }

    public void setTitleName(String titleName) {
        this.titleName = titleName;
    }

    public String getSyntax() {
        return syntax;
    }

    public void setSyntax(String syntax) {
        this.syntax = syntax;
    }

    public String getStyle() {
        return style;
    }

    public void setStyle(String style) {
        this.style = style;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}